package inherit.super_test;

/**
 * @author yuisama
 * @date 2022/09/13 20:16
 **/
public class D {
    public D() {
        System.out.println("1.D的无参构造");
    }
    {
        System.out.println("2.D的构造块");
    }
    static {
        System.out.println("3.D的静态代码块");
    }
}
class E extends D {
    public E() {
        System.out.println("4.E的无参构造");
    }
    {
        System.out.println("5.E的构造块");
    }
    static {
        System.out.println("6.E的静态代码块");
    }
    public static void main(String[] args) {
        System.out.println("7.main开始");
        E e = new E();
        E e1 = new E();
        System.out.println("8.main结束");
    }
}